package com.bdqn.t350.ch09.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;


@TableName("sys_user")
@Data
@Accessors(chain = true)
public class User implements Serializable {

    @TableId(type = IdType.AUTO)
    @TableField("usr_id")
    private Long usrId;
    @TableField("usr_name")
    private String usrName;
    @JsonIgnore
    private String usrPassword;
    @JsonIgnore
    private Long usrRoleId;
    @JsonIgnore
    private Integer usrFlag;

    @JsonIgnore
    @TableField(exist = false)
    private Role role;

    @JsonIgnore
    @TableField(exist = false)
    private List<File> listFile;

}
